package com.mouliu.base.syn13;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author mouliu
 * @create 2018-03-31-下午10:44
 */
public class TestConcurrentHashMap {
    public static void main(String[] args){
        ConcurrentHashMap<String,String> map = new ConcurrentHashMap(); //初始化ConcurrentHashMap
        //新增个人信息
        map.put("id","1");
        map.put("name","andy");
        map.put("sex","男");
        //获取姓名
        String name = map.get("name");
//        Assert.assertEquals(name,"andy");
        //计算大小
        int size = map.size();
//        Assert.assertEquals(size,3);
    }
}
